<h1 align="center"> Документы </h1>

<div style="float: right; margin-right: 20px;">
  <a href="<?php echo $this->url(array(
    'module' => 'default',
    'controller' => 'document',
    'action' => 'create',
  ), NULL, true);?>" > Создать </a>
</div>
<div style="float: left">
  <ul>
    <?php foreach ($this->documents as $document): ?>
      <h3>
        <li>
          <a href="<?php echo $this->url(array(
            'module' => 'default',
            'controller' => 'document',
            'action' => 'view',
            'document_id' => $document->document_id
          ), NULL, true);?>"><?php echo $document->title;?></a>
        </li>
      </h3>
    <?php endforeach; ?>
  </ul>
</div>